package com.service.device;

import com.common.ErrorCodeEnum;
import com.common.emums.DataStatus;
import com.common.exception.BusinessException;
import com.common.utils.StringUtils;
import com.core.springSecurity.common.SecurityUtils;

import com.dao.secondary.device.DevicePcbErrorRecordInfoMapper;
import com.model.domain.device.GetDevicePcbErrorRecordInfoDO;
import com.model.pojo.device.DevicePcbErrorRecordInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.github.pagehelper.PageHelper;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;


/**
 * @Author: zql
 * @Description: 安卓版设备异常情况信息记录服务
 * @Data: 2023-06-21
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class DevicePcbErrorRecordInfoService {
    private final DevicePcbErrorRecordInfoMapper devicePcbErrorRecordInfoMapper;

    public List<DevicePcbErrorRecordInfo> getPageList(GetDevicePcbErrorRecordInfoDO getDevicePcbErrorRecordInfoDO){
        PageHelper.clearPage();
        PageHelper.startPage(getDevicePcbErrorRecordInfoDO.getPage(),getDevicePcbErrorRecordInfoDO.getPageSize(),getDevicePcbErrorRecordInfoDO.getSortRow()+getDevicePcbErrorRecordInfoDO.getSortOrder());
        return devicePcbErrorRecordInfoMapper.selectList(getDevicePcbErrorRecordInfoDO);
    }
}
